          ============================================================

                    CHANGES NEEDED TO SYSTEM FILES:

          ============================================================

                        - /config/npcdesc.cfg
                        - /scripts/misc/login.src


// *********************************************************************************************
//    /config/npcdesc.cfg
// *********************************************************************************************

NpcTemplate TownAdministrator
{
    //don't spawn this one
    Name        Administrator
    script      :towncontrol:ai\townadvisor

    ObjType     0x190
    Color       0
    TrueColor   0
    Gender      0
    STR         200
    INT         200
    DEX         200
    HITS        200
    MANA        200
    STAM        200

    guardignore 1
    //    Privs       invul
    //    Settings    invul
    alignment   good
    Wrestling 100
    AttackSkillId Wrestling
    AttackHitSound      0x23D
    AttackMissSound     0x239
    AttackSpeed 80
    AttackDamage 5d20
    AR           30
    AttackHitScript     :combat:mainhitscript
}

NpcTemplate  TownCrier
{
    Name                Crier
    script              :towncontrol:ai\towncrier
    
    ObjType             0x190
    Color               33784
    TrueColor           33784
    Gender              0
    STR                 100
    INT                 100
    DEX                 200
    HITS                100
    MANA                0
    STAM                100
    
    
    AttackSpeed         50
    AttackDamage        3d6+2
    AttackSkillId       Swordsmanship
    AttackHitSound      0x23D
    AttackMissSound     0x239
    AR                  30
    guardignore         1
    alignment           good
    AttackHitScript     :combat:mainhitscript
}

NpcTemplate  TownBanker
{
    Name                Banker
    script              :towncontrol:ai\townbanker
    
    ObjType             0x190
    Color               33784
    TrueColor           33784
    Gender              0
    STR                 100
    INT                 100
    DEX                 200
    HITS                100
    MANA                0
    STAM                100
    
    
    AttackSpeed         50
    AttackDamage        3d6+2
    AttackSkillId       Swordsmanship
    AttackHitSound      0x23D
    AttackMissSound     0x239
    AR                  30
    guardignore         1
    alignment           good
    AttackHitScript     :combat:mainhitscript
}

// *********************************************************************************************
//     /scripts/misc/login.src
// *********************************************************************************************

  use uo;
  use datafile;
  use os;

  include "../pkg/std/towncontrol/towncontrol";
  include "../pkg/std/races/races";
  include "../pkg/std/gumps/gumps";

// -------------------PLACE THE CODE BELOW SOMEWHERE IN THE MAINSCRIPT-----------------------

  var playerdatafile:=tc_playerdatafile();
  var playerELEMENT:=playerdatafile.findelement("p"+who.serial);

  if (playerELEMENT)
    var text:=playerELEMENT.getprop("lastmsg");
    if (text)

      GFInitGump(100, 100);
      GFNoClose();
      GFGumpPic(20,20, 0x9c4 );			// background
      GFTextMid(37,44,180, 39, "Notes from thy city:");
      GFTextMid(37,62,180, 0, text[1]);
      GFTextMid(37,80,180, 0, text[2]);
      GFTextMid(37,98,180, 0, text[3]);
  
      GFButtonID(105, 127, 0x909, 0x907, 1);  	//ok

      GFSendgump(who);

      playerELEMENT.eraseprop("lastmsg");
    endif
  endif


// *********************************************************************************************


